package com.hujf.flink.param;

import org.apache.flink.api.java.utils.ParameterTool;

import java.io.File;
import java.io.IOException;

/**
 * @Author hujf
 * @Date 2022/5/18 16:18
 * @Description TODO
 */
public class ParamToolTest {
    public static void main(String[] args) throws IOException {
        String s = "D:\\java\\workspace\\flink\\workspace\\src\\main\\resources\\my.properties";

        ParameterTool parameterTool = ParameterTool.fromPropertiesFile(s);

        String a = parameterTool.get("a");

        System.out.println(a);

    }
}
